﻿
@{
    ViewBag.Title = "CarScrapDetail";
    ViewBag.First = "车辆管理";
    ViewBag.Second = "车辆报废详情";
    Layout = "~/Views/Shared/_BaseLayout.cshtml";
    var ent = ViewData["ent"] as Sc.Domain.CarScrap;
}
<script type="text/javascript">
    function back() {
        window.location.href = "@Url.Action("Index")";
    }
</script>
<div class="formbody">
    <div class="formtitle"><span>车辆报废详情</span></div>
    <form method="post" enctype="multipart/form-data" class="jqtransform" id="formData" style="margin-top:-20px;">
        <table style="width:98%;margin-left:20px;line-height:48px;">
            <tr>
                <td><label>报废车辆</label></td>
                <td>
                    <input type="text" readonly="readonly" value="@ent.CarNo" class="dfinput" id="txtCar" />
                </td>
                <td><label>报废原因</label></td>
                <td>
                    <input type="text" class="dfinput" readonly="readonly" id="txtReson" value="@ent.ScrapReson" />
                </td>
            </tr>
            <tr>
                <td><label>报废时间</label></td>
                <td><input type="text" class="dfinput" readonly="readonly" value="@ent.ScrapTime.ToString("yyyy-MM-dd")" id="txtCarScrapTime" /></td>
                <td><label>登记时间</label></td>
                <td><input type="text" class="dfinput" readonly="readonly" value="@ent.RegistrationTime.ToString("yyyy-MM-dd")" id="txtDjTime" /></td>
            </tr>
            <tr>
                <td><label>使用年限</label></td>
                <td><input type="text" class="dfinput" readonly="readonly" id="txtUseAge" value="@ent.ServiceLife" /> 年</td>
                <td><label>残值率</label></td>
                <td><input type="text" class="dfinput" readonly="readonly" id="txtCzl" value="@ent.ResidualValue" /> %</td>
            </tr>
            <tr>
                <td><label>残值金额</label></td>
                <td><input type="text" class="dfinput" readonly="readonly" id="txtMoney" value="@ent.ResidualAmount" /> 元</td>
                <td><label>报废地点</label></td>
                <td><input type="text" class="dfinput" readonly="readonly" id="txtAddress" value="@ent.ScrapAddress" /></td>
            </tr>
        </table>
        <div class="formtitle"><span>报废照片</span></div>
        <div class="toolsli">
            <ul class="toollist" id="tp">
                @if (ent.AttactList != null)
                {
                    foreach (var item in ent.AttactList)
                    {
                        <li style="width:140px;height:140px">
                            <a><img width="120" style="border-radius:5px" height="120" src="/UploadFiles/CarImg/@item.FileUrl" /></a>
                        </li>
                    }
                }
            </ul>
        </div>
        <input type="button" style="float:right" class="scbtn" onclick="back();" value="返 回" />
    </form>
</div>

